package com.kt.emall.search.vo;

import lombok.Data;

import java.util.List;

/**
 * Description: 封装页面所有可能传递过来的查询条件
 * Created with IntelliJ IDEA.
 *
 * @author: KamTeng
 * Date: 2021/8/18
 */
@Data
public class SearchParam {

    /**
     * 页面传递过来的全文匹配关键字
     */
    private String keyword;

    /**
     * 3级分类ID
     */
    private Long catalog3Id;

    /**
     *
     * 排序条件
     * sort=saleCount_asc/desc
     * sort=skuPrice_asc/desc
     * sort=hotScore_asc/desc
     */
    private String sort;

    /**
     * 还有多个过滤条件
     * hasStock(是否有货  默认有库存)、skuPrice区别、brandId、catalog3Id、attrs
     * hasStock=0/1  是否有货
     * skuPrice=1-500/-500/500-  价格区别查询
     * brandId=1  品牌Id
     * attrs=2-5存；6寸  按照属性进行筛选
     * pageNum  页码   默认第一页
     */
    private Integer hasStock;
    private String skuPrice;
    private List<Long> brandId;
    private List<String> attrs;
    private Integer pageNum = 1;
}